import { Message } from "element-ui";

export default{
    /**
     * 
     * @param {*} title 
     * @param {*} status 
     * success 成功
     * warning 警告
     * error 错误
     */
    //消息提示框
    promptBox: function (title, status) {
        if(title == undefined){
            title="未知错误"
            status=warning
        }
        Message({
            showClose: true,
            message: title ,
            type: status,
        });
    }

}